import { HUMAN_STAGE_STATUS_ENUM, PAY_STATUS_ENUM } from "@/enums";
import type { TabItem } from "@/types";

/** 图片地址 */
export const IMG_CDN_25 = import.meta.env.VITE_IMG_CDN_25;
export const IMG_CDN_39 = import.meta.env.VITE_IMG_CDN_39;
export const VIDEO_CDN_39 = import.meta.env.VITE_VIDEO_CDN_39;
/** 充值类型图标 */
export const ASSET_TYPE_ICON_MAP: Record<number, string> = {
  1: `${IMG_CDN_39}/member/pic_human_icon2.png`,
  2: `${IMG_CDN_39}/member/package_ai_coin_icon.png`,
  3: `${IMG_CDN_39}/member/speed_timbre_icon.png`,
  4: `${IMG_CDN_39}/member/nomal_human_icon2.png`,
  5: `${IMG_CDN_39}/member/exclusive_human_icon.png`,
  6: `${IMG_CDN_39}/member/exclusive_timbre_icon.png`,
  7: `${IMG_CDN_39}/member/no_train_video_icon.png`,
  8: `${IMG_CDN_39}/member/no_train_video_icon.png`
};
/** 充值类型 */
export const ASSET_TYPE_MAP: Record<number, string> = {
  1: "照片数字人卡位",
  2: "AI币",
  3: "极速音色卡位",
  4: "2D数字人(标准通用口型)卡位",
  5: "2D数字人(专属定制口型)卡位",
  6: "专属音色卡位",
  7: "2D数字人(极速版)卡位",
  8: "2D数字人(极速版)卡位：不限"
};
/** 数字人类型 */
export const HUMAN_TYPE_MAP: Record<number, string> = {
  1: "照片数字人",
  2: "通用口型",
  3: "专属口型",
  4: "极速数字人",
  5: "PPT"
};
/** 音色生成中步骤状态文本 */
export const TIMBRE_STAGE_STATUS_TEXT: Record<string, string> = {
  [HUMAN_STAGE_STATUS_ENUM.SUBMIT]: "待审核",
  [HUMAN_STAGE_STATUS_ENUM.AUDIT]: "人工审核中",
  [HUMAN_STAGE_STATUS_ENUM.TRAIN]: "训练中",
  [HUMAN_STAGE_STATUS_ENUM.CONFIRM]: "待确认",
  [HUMAN_STAGE_STATUS_ENUM.END]: "已生成"
};
/** 类型 */
export const COMBO_TYPE_MAP: Record<number, string> = {
  1: "套餐权益包",
  2: "AI币充值"
};
/** 订单支付状态文案映射表 */
export const PAY_STATUS_MAP: Record<number, string> = {
  [PAY_STATUS_ENUM.WAIT]: "未支付",
  [PAY_STATUS_ENUM.SUCCESS]: "支付成功",
  [PAY_STATUS_ENUM.CANCEL]: "已取消",
  [PAY_STATUS_ENUM.REFUND]: "已退款"
};
/** 支付方式 */
export const PAY_METHOD_MAP: Record<number, string> = {
  1: "微信支付",
  2: "支付宝支付",
  3: "抖音支付",
  4: "积分支付(ios)",
  5: "线上支付"
};
export const INPUT_TYPE_ENMU: Record<string, string> = {
  TEXT: "1",
  AUDIO: "2"
};
export const INPUT_TYPE_TAB: TabItem[] = [
  {
    name: "输入文本",
    id: INPUT_TYPE_ENMU.TEXT,
    money: 0
  },
  {
    name: "上传音频",
    id: INPUT_TYPE_ENMU.AUDIO,
    money: 0
  }
];
export interface UploadImgStandardItem {
  /** ID */
  id: number;
  /** Image source URL */
  src: string;
  /** Image name */
  name: string;
}
export const UPLOAD_IMG_STANDARD_LIST: UploadImgStandardItem[] = [
  {
    id: 1,
    src: `${IMG_CDN_39}/createHuman/upload_img_standard1.jpg`,
    name: "标准正脸"
  },
  {
    id: 2,
    src: `${IMG_CDN_39}/createHuman/upload_img_standard2.jpg`,
    name: "侧脸"
  },
  {
    id: 4,
    src: `${IMG_CDN_39}/createHuman/upload_img_standard4.jpg`,
    name: "面部遮挡"
  },
  {
    id: 3,
    src: `${IMG_CDN_39}/createHuman/upload_img_standard3.jpg`,
    name: "动漫形象"
  }
];
/** AI文案生成大模型枚举 */
export const AI_COPY_MODEL_ENUM: Record<string, number> = {
  HUNYUAN: 1,
  DEEPSEEK: 2
};

/** AI文案生成任务状态枚举值 */
export const AI_COPY_STATUS_ENUM: Record<string, number> = {
  GENERATING: 2,
  DONE: 3
};
export const TIMBRE_SEX_IMG_MAP: Record<number, string> = {
  1: `${IMG_CDN_25}/digitalHuman/dub_role_avatar_boy.jpg`,
  2: `${IMG_CDN_25}/digitalHuman/dub_role_avatar_girl.jpg`,
  3: `${IMG_CDN_39}/createHuman/timbre_default_img.png`
};
